package printstream;

import java.io.FileNotFoundException;
import java.io.PrintStream;

public class Test {
    public static void main(String[] args) {
        try (
                PrintStream ps = new PrintStream("C:\\Users\\zjd\\IdeaProjects\\java\\src\\itheima.08.txt");
                ) {
            ps.println(97);
            ps.println(97.99);
            ps.println("我爱你中国");
            ps.println('a');
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
